package main

import "fmt"

var any interface{}

func main() {
	//空接口赋值
	any = 1
	fmt.Println(any)
	any = "hello"
	fmt.Println(any)
	any = false
	fmt.Println(any)
	//声明a变量，类型int,初始值为1
	var a int = 1
	var i interface{} = a
	var b int = i.(int)
	fmt.Println(b)

	var a1 interface{} = 1
	var b1 interface{} = "hi"
	fmt.Println(a1 == b1)

	var c interface{} = []int{10}
	var d interface{} = []int{20}
	fmt.Println(c == d)
}
